package com.jumi.microservice.controller.api;


import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.ObjectUtil;
import com.jumi.microservice.common.base.dto.ResponseResult;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

/**
 * <p>
 * 店铺流量 前端控制器
 * </p>
 *
 * @author 要挑客户管理团队
 * @since 2020-09-14
 */
@RestController
@RequestMapping("/jm-flow-log")
@Api(value="店铺流量",tags={"店铺流量接口"})
public class JmFlowLogController {

   public ResponseResult flowUser(String dateTime) {

       String date;
       if (ObjectUtil.isNull(dateTime)) {
            date = DateUtil.format(LocalDateTime.now(), "yyyy/MM/dd");
       } else {
            date = dateTime;
       }

       return ResponseResult.success();

   }

}
